
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.sql.*" %>
<%@page import="Exam.Shujulj" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
   
  </head>
  
  <body>
  
<%
Connection con=Shujulj.getConnection();
Statement stat=con.createStatement();
String sql="select * from df";
ResultSet rs=stat.executeQuery(sql);

while(rs.next()){
out.println("<table>");
out.println("<tr>");
out.print("<td>"+rs.getString("xm")+"</td>");
out.print("<td>"+rs.getString("xb")+"</td>");
out.println("</tr>");
out.println("</table>");
}
Connection con1=Shujulj.getConnection();
Statement stat1=con1.createStatement();
String sql1="select * from cf";
ResultSet rs1=stat1.executeQuery(sql1);
while(rs1.next()){
out.println("<table>");
out.println("<tr>");
out.print("<td>"+rs1.getString("lou")+"</td>");
out.println("</tr>");
out.println("</table>");
}
 %>
  </body>
</html>
